package simpleModule.controller {
	import simpleModule.model.SimpleModuleProxy;	
	import simpleModule.view.SimpleModuleMediator;	
	
	
	import org.puremvc.as3.multicore.interfaces.INotification;	
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	
	public class SimpleModuleStartupCommand extends SimpleFabricationCommand 
	{
		override public function execute(note : INotification) : void 
		{
			registerMediator(new SimpleModuleMediator(note.getBody() as SimpleModule));
			registerProxy(new SimpleModuleProxy);
			
			var simpleProxy : SimpleModuleProxy = retrieveProxy(SimpleModuleProxy.NAME) as SimpleModuleProxy;
			simpleProxy.load();
		}
	}
}